using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using Microsoft.AceEngineering.SPM.SPMDataLayer;
using Microsoft.AceEngineering.SPM.SPMCustomDataEntity;

namespace Microsoft.AceEngineering.SPM.SPMBusinessLayer
{
    public class ContactTypesBL
    {
        public static List<ContactTypeCDE> GetEnabledContactTypes(string dir)
        {
            return ContactTypesDL.GetContactTypes(dir, "SPM_spGetActiveContactTypes");
        }

        public static List<ContactTypeCDE> GetDisabledContactTypes(string dir)
        {
            return ContactTypesDL.GetContactTypes(dir, "SPM_spGetInactiveContactTypes");
        }

        public static void EnableContactType(string contactTypeID)
        {
            ContactTypesDL.ChangeContactTypeStatus(contactTypeID, true);
        }

        public static void DisableContactType(string contactTypeID)
        {
            ContactTypesDL.ChangeContactTypeStatus(contactTypeID, false);
        }

        public static void InsertContactType(string contactType, string createdBy)
        {
            ContactTypesDL.InsertContactType(contactType, createdBy);
        }

        public static void UpdateContactType(string contactTypeID, string contactType, string createdBy)
        {
            ContactTypesDL.UpdateContactType(contactTypeID, contactType, createdBy);
        }
    }
}